
#define u32 unsigned long
#define u16 unsigned short
#define u8 unsigned char
#define s32 signed long
#define s16 signed short
#define s8 signed char




#include <Windows.h>
#include <stdio.h>
#include <time.h>

//#include "Misc.h"
#include <vector>
#include <algorithm>
#include <string>


#include "backbuffer.h"
#include "image.h"
#include "Structures.h"
#include "resource.h"
#include "GBAMethods.h"
#include "globals.h"
#include "GameVars.h"
#include "ScrollBarCls.h"
//#include "WorkingArea.h"
#include "MapWindow.h"
#include "Toolset.h"
#include "GameStructures.h"
#include "GameClass.h"
EXT GBAMethods GBA;
EXT HWND hwndMain;
EXT HINSTANCE hGlobal;
EXT cMapWindow MapWindow;
EXT WNDCLASSEX wcMap;
EXT WNDCLASSEX wcTileset;
EXT cToolset Tools;
EXT Image    imgMap;
EXT Image    imgTileset;
EXT BackBuffer bbMap;
EXT BackBuffer bbTileset;
EXT clsGameClass clsGame;
EXT cWorkArea    WorkArea;
EXT char         AppPath[1024];